<?php
class Workflow_Service_UserRetrieveByGroup implements Workflow_Service_UserRetriever
{
	protected $groupid;
	
	public function __construct($groupid)
	{
		$this->groupid = $groupid;
	}
	
	public function getUsers(Workflow_Execution_Database $execution = null)
	{
		$svc = new Ext_Service_Base();
		$db = $svc->db();
		return $db->fetchCol("select user_id from users_groups where group_id = ?", $this->groupid);
	}
}
?>